﻿<!DOCTYPE html>
<!--法律法规合规性评价报告管理-->
<html>

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
        <script src="/static/js/common.js"></script>

    <style>
        .el-dialog__body {
            height: 100% !important;
        }

        .el-dialog.is-fullscreen {
            overflow: hidden !important;
        }
        .el-dialog__wrapper {
            position: absolute !important;
        }
    </style>
</head>

<body>
    
<div id="app" v-cloak>   
        <el-form label-position="right" ref="form" :inline="true" :model="formInline" class="demo-form-inline"
            style="margin-bottom: 15px;">
            <!--按钮-->
            <el-row>
                <el-col class="head-tool">
                    
<div class="new_title fl"><strong><img src="/static/images/icon1.png" />法律法规合规性评价报告管理列表</strong>
                    </div>

<span>
    <btn :text="col.btnSelect" imgsrc="/static/images/search.png" linetype="3"
         @click="btn_onSubmit"></btn>
    <btn :text="col.btnAdd" linetype="3" @click="btn_UserInput('tj')"></btn>
    <btn :text="col.btnDelete" linetype="3" @click="btn_onDelete"></btn>
    <btn-template-download linetype="4" tempname="年度合规性评价.docx"></btn-template-download>
    <!--<btn :text="col.btnPJSPLC" linetype="4" @click="btn_onDelete" imgsrc="/static/images/search.png"></btn>-->
</span>
                </el-col>
            </el-row>
            <!--文本框-->
            <el-row>
                <!--工厂组件-->
                <list-factorys @change="factoryChange" v-model="formInline.model.createFactory"></list-factorys>
                <el-col :xs="8" :sm="8" :md="6" :lg="6" :xl="6">
                    <div class="elst-select-mini">
                        <el-form-item>
                            <el-input size="mini" prop="years">
                                <template slot="prepend">
                                    {{LawRegulationsFitAdministration.years+mark.m}}
                                </template>
                                <el-date-picker v-model="formInline.model.Years" type="year" slot="suffix" size="mini"
                                                format="yyyy" value-format="yyyy" placeholder="选择年份">
                                </el-date-picker>

                                <!--<el-date-picker v-model="formInline.model.MS_CheckDateBegin" type="date" slot="suffix"
                                    size="mini" placeholder="选择日期">
                    </el-date-picker>-->
                            </el-input>
                        </el-form-item>
                    </div>
                </el-col>
                <!--备注-->
                <!-- <el-col :xs="8" :sm="8" :md="8" :lg="6" :xl="6">
        <div class="elst-select-mini">
            <el-form-item>
                <el-input v-model="formInline.model.Remarks" :placeholder="LawRegulationsTable.Remarks"
                    size="mini">
                    <template slot="prepend">
                        {{LawRegulationsTable.Remarks+mark.m}}
                    </template>
                </el-input>
            </el-form-item>
        </div>
    </el-col> -->
            </el-row>
        </el-form>

        <!--下方表格-->
        <el-table stripe ref="table" :data="ListItem.tableData" :row-key="getRowKeys" :height="ListItem.tableHeight"
                  border @selection-change="handleSelectionChange" row-style="height:10px" style="width: 100%;">
            <!--复选框-->
            <el-table-column type="selection" style="padding-top: 0px;padding-bottom: 0px;" align="center" width="55"
                             :reserve-selection="true">
            </el-table-column>
            <!--序号-->
            <el-table-column type="index" :label="col.SequenceNumber" :index="indexMethod" width="50"
                             show-overflow-tooltip="true"></el-table-column>
            <!--年份-->
            <el-table-column prop="years" :label="LawRegulationsFitAdministration.years" show-overflow-tooltip="true"
                             min-width="70">
                <template slot-scope="scope">
                    <el-button type="text" @click="label_click('xz',scope.row.id)">
                        {{scope.row.years}}
                    </el-button>
                </template>
            </el-table-column>
            <!--编辑部门-->
            <!--<el-table-column prop="mark01" :label="LawRegulationsFitAdministration.organizationClass"
                     show-overflow-tooltip="true" min-width="130">
    </el-table-column>-->
            <!--评审目的|evaluateAim-->
            <!-- <el-table-column prop="evaluateAim" :label="LawRegulationsFitAdministration.evaluateAim"
        show-overflow-tooltip="true" min-width="200">
    </el-table-column> -->
            <!--日期-->
            <el-table-column prop="createTime" :label="LawRegulationsFitAdministration.date" show-overflow-tooltip="true"
                             min-width="110" :formatter="myformatDate">
            </el-table-column>
            <!--审核人-->
            <el-table-column prop="mark02" :label="LawRegulationsFitAdministration.auditor"
                             show-overflow-tooltip="true" min-width="110">
            </el-table-column>
            <!--审核日期-->
            <el-table-column prop="auditDate" :label="LawRegulationsFitAdministration.tableAuditDate"
                             show-overflow-tooltip="true" min-width="110" :formatter="myformatDate">
            </el-table-column>
            <!--批准人-->
            <el-table-column prop="mark03" :label="LawRegulationsFitAdministration.approver"
                             show-overflow-tooltip="true" min-width="110">
            </el-table-column>
            <!--批准日期-->
            <el-table-column prop="approveDate" :label="LawRegulationsFitAdministration.approveDate"
                             show-overflow-tooltip="true" min-width="110" :formatter="myformatDate">
            </el-table-column>
            <!--状态-->
            <el-table-column prop="state" :label="LawRegulationsFitAdministration.State"
                             show-overflow-tooltip="true" min-width="110" >
            </el-table-column>
            <!--第十二列-->
            <!-- <el-table-column prop="Remarks" show-overflow-tooltip="true" :label="LawRegulationsTable.Remarks">
    </el-table-column> -->
            <!--修改按钮-->
            <el-table-column width="53" prop="update" :label="col.btnUpdate" fixed="right">
                <template slot-scope="scope">
                    <button type="button" class="elst-bt-xg" @click=btn_alert('xg',scope.row.id)>
                        <i class="el-icon-edit"></i>
                    </button>
                </template>
            </el-table-column>
            <!--评审流程按钮-->
            <el-table-column width="83" prop="update" :label="LawRegulationsFitAdministration.PingShen" fixed="right">
                <template slot-scope="scope">
                    <button type="button" class="elst-bt-xg" @click=btn_PingShen('sh',scope.row.id)>
                        <i class="el-icon-approval"></i>
                    </button>
                </template>
            </el-table-column>
            <!--审核-->
            <!--<el-table-column width="53" prop="update" :label="col.btnExamine" fixed="right">
                <template slot-scope="scope">
                    <button type="button" class="elst-bt-xg" @click=btn_Examine('sh',scope.row.id)>
                        <i class="el-icon-approval"></i>
                    </button>
                </template>
            </el-table-column>-->
            <!--批准-->
            <!--<el-table-column width="53" prop="update" :label="col.btnApproval" fixed="right">
                <template slot-scope="scope">
                    <button type="button" class="elst-bt-xg" @click=btn_Approval('pz',scope.row.id)>
                        <i class="el-icon-s-claim"></i>
                    </button>
                </template>
            </el-table-column>-->
        </el-table>
        <!--分页-->
        <el-row type="flex" justify="end">
            <el-pagination ref="page" @size-change="handleSizeChange" @current-change="handleCurrentChange"
                :current-page="ListItem.currentPage" :page-sizes="ListItem.pagesizes" :page-size="ListItem.pagesize"
                :layout="ListItem.layout" :total="ListItem.total">
            </el-pagination>
        </el-row>
        <!--弹出层-->
        <el-dialog title="合规性评价报告管理" :visible.sync="ListItem.dialogVisible" @close='closeDialog' width="90%"
            height="80%" top="10vh" fullscreen="true">
            <iframe ref="iframe" :src="ListItem.InputUrl" style="height:95%;width:100%" frameborder="0"></iframe>
        </el-dialog>
    </div>
<script>
        var app = new Vue({
            el: '#app',
            data: {
                //表单内容
                ListItem: ListItem,
                formInline: {
                  //  model: { years: '' },
                    model: {},
                },
                offset: 0,
                limit: 10
            },
            mounted: function () {
                //初始化数据
              //  this.GetPageData(1);
                //列表高度自适应
                tablehigh(this);
            },
            methods: {
                //解決edge下select bug
                visibleChange: function (isVisible) {
                    visibleChange(isVisible)
                },
                factoryChange: function () {
                    //var aa = this.formInline.model.createFactory;
                    this.GetPageData(1);
                },
                indexMethod: function (index) {
                    return (this.ListItem.currentPage - 1) * this.ListItem.pagesize + index + 1;
                },
                   //初始化数据
                GetPageData: function (currentIndex) { GetPageData(this, currentIndex, '/api/FL_Evaluation/GetList') },
                // 列表选择触发
                handleSelectionChange: function (val) { handleSelectionChange(this, val); },
                //pagesize改变 触发方法
                handleSizeChange: function (val) { handleSizeChange(this, val); },
                //跳页触发方法
                handleCurrentChange: function (val) { handleCurrentChange(this, val); },
                //查询
                btn_onSubmit: function () { onSubmit(this); },
                //添加
                btn_UserInput: function (val, id) { id = this.ListItem.total; DialogPowerShow(this, val, "LawRegulationsFitAdministrationUserInput.html", id); },
                //修改
                btn_alert: function (val, id) {
                    DialogPowerShow(this, val, "LawRegulationsFitAdministrationUserInputEdit.html", id);
                },
                //评审
                btn_PingShen: function (val, id) { DialogPowerShow(this, val, "LawRegulationsFitAdministrationUserInputPS.html", id); },
                //审核
                btn_Examine: function (val, id) { DialogPowerShow(this, val, "LawRegulationsFitAdministrationInput.html", id); },
                //批准
                btn_Approval: function (val, id) { DialogPowerShow(this, val, "LawRegulationsFitAdministrationInput.html", id); },
                //删除
                btn_onDelete: function () { onDelete(this, '/api/FL_Evaluation/DeleteMuti'); },
                //点击表格中数据发生方法
                label_click: function (val, id) { DialogShow(this, val, "LawRegulationsFitAdministrationUserInputEditSee.html", id); },
            },
        })
</script>
</body>

</html>